package lexicalUnit;

import chalmersbot.Absyn.ISentence;
import chalmersbot.Absyn.ISentenceD;
import chalmersbot.Absyn.QSentence;
import chalmersbot.Absyn.Sentence.Visitor;

public class CheckSentence implements Visitor<String, Environ> {

	@Override
	public String visit(QSentence p, Environ arg) {
		return p.qphrase_.accept(new CheckQPhrase(), arg);
	}

	@Override
	public String visit(ISentence p, Environ arg) {
		return p.iphrase_.accept(new CheckIPhrase(), arg);
	}

	@Override
	public String visit(ISentenceD p, Environ arg) {
		return p.iphrase_.accept(new CheckIPhrase(), arg);
	}
}
